﻿using System;
using SteeringBehaviors;

// Token: 0x020001DC RID: 476
public class ArriveAction : AgentAction
{
	// Token: 0x06000A2B RID: 2603 RVA: 0x00059ED7 File Offset: 0x000580D7
	public ArriveAction(IKinematic target)
	{
		this.name = "Arrive to " + target.position;
		this.target = target;
	}

	// Token: 0x06000A2C RID: 2604 RVA: 0x00059F01 File Offset: 0x00058101
	public override void StartAction()
	{
		this.agent.movement.StartArriveBehavior(this.target);
	}

	// Token: 0x06000A2D RID: 2605 RVA: 0x00059F1A File Offset: 0x0005811A
	public override bool IsCompleted()
	{
		return this.hasStarted && !this.agent.movement.move;
	}

	// Token: 0x06000A2E RID: 2606 RVA: 0x00059F3D File Offset: 0x0005813D
	public override void Interrupt()
	{
		this.agent.movement.Stop();
	}

	// Token: 0x04000F8D RID: 3981
	private IKinematic target;
}
